Tool Mentor: Adding Templates to Your Rational RequisitePro« ProjectPurposeThis tool mentor describes how to use Microsoft Word documents as templates for documents in your Rational RequisitePro projects. OverviewEvery new document in RequisitePro includes default formatting information. New documents are based on document types, which include a default file extension, a default requirement type, and an associated outline. RequisitePro includes the following outlines which can be used when creating document types in your project:
RequisitePro also includes these Rational Unified Process provided templates for requirements management:
These outlines are available in RequisitePro by clicking Project > Properties. At the Document Types tab, click the Add or Edit button. The Document Type dialog box appears. The list of outlines is available at the Outline Name field. Select an outline when creating or editing a document type. Creating Custom OutlinesYou also have the option of creating custom outlines, based on your existing Microsoft Word documents. A RequisitePro outline is a reference document used to control the formatting of Microsoft Word documents in RequisitePro. This is useful for maintaining consistency across documents of the same type. RequisitePro outlines are composed of two files, which are stored the outlines directory in your RequisitePro installation:
To add a new template to your RequisitePro project, do the following:
1. Create a Microsoft Word Template
You can also use the template files provided with the Rational Unified Process. They can be found in your Rational Unified Process installation directory in the folder wordtmpl/templates. The following templates are available for the business engineering workflow:
The following templates are available for the requirements workflow. If you created your RequisitePro project using the RequisitePro Project Template, your project already contains these templates. The templates are also available in the RequisitePro installation directory ..\Program Files\Rational\RequisitePro\outlines.
2. Create an Outline File
An outline file is created in a text editor and saved with a .def extension. The outline file is unformatted text file that contains an outline name, a description of the outline, and a reference to a Word template. The .def and the .dot file, created in procedure 1 above, must have the same name with different extensions, for example, usecase.def and usecase.dot. Both files must be stored in the outlines directory in your RequisitePro installation or in a secondary outlines directory that is referenced in RequisitePro by clicking Tools > Options/Directories/Outline Path.
An example usecase.def file includes the following lines:
3. Add Your Outline to
RequisitePro
Copy the .dot and .def files to the outlines directory in your RequisitePro installation directory or a secondary outlines directory. Typically the outlines directory is: C:\Program Files\Rational\RequisitePro\outlines. Your installation may vary, depending on the Rational products you've installed. If you use a secondary directory, be sure that the path is defined in RequisitePro. On the RequisitePro Tool Palette, click Tools > Options. In the Directories/Outline Path text field, type the path and directory name for your custom outlines. 4. Create a document
type based on your outline
|
Rational Unified
Process |